﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Notepad_X.Dialogs.Options
{
    public partial class OptionsDialog_Gen : Notepad_X.Components.MenuPanel
    {
        public OptionsDialog_Gen(Notepad_X.Dialogs.OptionsDialog parent)
        {
            InitializeComponent();
        }

        private void OptionsDialog_Gen_Load(object sender, EventArgs e)
        {
            ChangingPanelEvent += new ChangingPanelHandler(OptionsDialog_Gen_ChangingPanelEvent);
        }

        void OptionsDialog_Gen_ChangingPanelEvent(object sender, EventArgs e)
        {
           //Save

            Notepad_X.Classes.Settings tempS = ParentOptionsDialog.CurrentSettings;

            

            this.ParentOptionsDialog.CurrentSettings = tempS;
        }
    }
}
